package com.example.tablefield.entites;

import com.example.tablefield.enums.NameEnum;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.List;

@Data
public class YelloUserFeature implements UserFeature {
    private String skin;

    private List<TriggerConfig> triggerConfig;

    /**
     * Jackson 默认会序列化所有 getter 方法对应的属性
     * 添加@JsonIgnore，该字段不会被序列化/反序列化
     * @return
     */
    @JsonIgnore
    @Override
    public NameEnum getType() {
        return NameEnum.FEATURE;
    }
}
